<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String username = (String)session.getAttribute("username");	
	String vorname = (String)session.getAttribute("vorname");
	String name = (String)session.getAttribute("nachname");
%>
<ul>
	<li><a href="index.html"><img src="img/refresh.png" alt="Home">Home</a></li>
	<li><a href="AllePersonen.html"><img src="img/calendar.png"
			alt="Angebote">Angebote</a></li>

	<% if(username!=null) { %>
	<li><a href="Meine_Anfragen.html"><img src="img/clipboard.png"
			alt="Meine Anfragen">Meine Anfragen</a></li>
	<li><a href="changeUserDataGlobal.html"><img
			src="img/lock.png" alt="Benutzerdaten aendern">Benutzerdaten
			aendern</a></li>
	<li><a href="changeState.html"><img src="img/lock.png"
			alt="Mein Status">Mein Status</a></li>
	<% } else { %>
	<li><a href="Login.html"><img src="img/lock.png"
			alt="Anmelden / Registrieren">Anmelden / Registrieren</a></li>
	<% } %>
	<li><a href="kontakt.html"><img src="img/bulb.png"
			alt="Kontakt">Kontakt</a></li>
	<li><a href="impressum.html"><img src="img/bookmark.png"
			alt="Impressum">Impressum</a></li>
</ul>
<hr class="trenner">
<% if(username==null) { %>
<div class="login">
	<h2>Login</h2>
	<form name="login" action="LoginUser.html" method="POST">
		<table>
			<tr>
				<td><label for="email">Email</label></td>
			</tr>
			<tr>
				<td><input type="text" name="email" id="email"></td>
			</tr>
			<tr>
				<td><label for="pwd">Passwort</label></td>
			</tr>
			<tr>
				<td><input type="password" name="pwd" id="pwd"></td>
			</tr>
		</table>
		<input type="submit" value="Anmelden" />
	</form>
</div>
<% } else { %>
<div class="login">
	<c:if test="false">
		<h2><%= vorname %>'s Couch
		</h2>
		<jsp:include page="changeState.jsp" />
	</c:if>
	<br> Angemeldet als:<br>
	<center><%= username %></center>
	<br> <a href="Abmelden.html">Abmelden</a>
</div>
<% } %>